/*
*  Copyright (c) 2006-2020, Chukie
*  
*  SPDX-License-Identifier: Apache-2.0
*  
*  @file     : cellular_log.h
*  
*  @brief    : 
*  Website   : https://gitee.com/open-embedded
*  
*  
*  Change Logs:
*  Date           Author          Notes
*  2020-06-22     zhaocj       The first version
*/
/* Define to prevent recursive inclusion ------------------------------------*/
#ifndef __CELLULAR_LOG_H__
#define __CELLULAR_LOG_H__
/* Includes -----------------------------------------------------------------*/
#ifndef DBG_TAG
#define DBG_TAG "[CELL]"
#endif 
#ifndef DBG_LVL
#define DBG_LVL DBG_LOG
#endif
#include <rtdbg.h>
#ifdef __cplusplus
extern "C"
{
#endif /*__cplusplus*/
/* Exported types -----------------------------------------------------------*/
/* Exported constants -------------------------------------------------------*/
/* Exported macro -----------------------------------------------------------*/
/* Exported functions -------------------------------------------------------*/
#define CLOG_WARN           LOG_W
#define CLOG_ERR            LOG_E
#define CLOG_NOTICE         LOG_I
#define CLOG_INFO           LOG_D
//#ifndef CE_DEBUG
//#define CE_DEBUG
//#endif /*CE_DEBUG*/
#ifdef CE_DEBUG
#define CLOG_DBG(fmt,...)   LOG_D("%s %d: "fmt,__FUNCTION__,__LINE__,##__VA_ARGS__)
#else
#define CLOG_DBG(fmt,...)
#endif 


#ifdef __cplusplus
{
#endif /*__cplusplus*/
#endif /*__CELLULAR_LOG_H__*/
/* End of file****************************************************************/

